package com.woniuxy.caradmin.service;

import com.woniuxy.caradmin.entity.pojo.Maintainrecord;
import com.woniuxy.caradmin.entity.vo.MaintainrecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
public interface MaintainrecordService  {
    //查询全部的保养记录
    public List<Maintainrecord> selectAllMaintainRecord(MaintainrecordVo maintainrecordVo);

    //1 分页查询
    public List<Maintainrecord> selectAllBy(MaintainrecordVo maintainrecordVo);

    //根据车牌号模糊查询保养记录
    public List<Maintainrecord> selectMaintainRecordByVid( String vehiclenum);

    //2 增加保养记录
    public int addMaintainRecord(Maintainrecord maintainrecord);

    //5 修改保养记录
    public int updateMaintainRecord(Maintainrecord maintainrecord);

    //3 删除保养记录
    public boolean deleteMaintainRecord(Integer[] ids);

    //4 根据id查询--为了修改使用
    public Maintainrecord maintainRecordById(Integer id);
    //删除保养记录
    public int deleteMaintainRecord(Integer id);
    //id查,不做关联
    public Maintainrecord selectMaintainrecordById2(Integer id);
}
